#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>

#define MAXSIZE 100 

char buff[MAXSIZE];

void init()
{
  printf("[%s@%s %s]# ",getenv("USER"),getenv("HOSTNAME"),getenv("PWD"));
  fflush(stdout);
}
void getCommand()
{
  fgets(buff,sizeof buff,stdin);

  printf("%s\n",buff);
}
int main()
{
  while(1)
  {
    init();
    getCommand();
  }
  return 0;
}
